<template>
  <ul class="list">
    <li class="item" @click="handleClick" v-for="(item,key) of cities" :key="key">{{key}}</li>
  </ul>
</template>
<script>
export default {
  name: "CityAlphabet",
  props: { cities: Object },
  data() {
    return {};
  },
  methods: {
    handleClick(e) {
        console.log("e",e.target.innerText)
    }
  }
};
</script>
<style lang="stylus" scoped>
@import '~styles/varibles.styl';

.list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: absolute;
  right: 0;
  top: 1.6rem;
  bottom: 0;

  .item {
    line-height: 0.4rem;
    text-align: center;
    color: $bgColor;
  }
}
</style>

